import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //主体名称模糊查询 queryComcode
  queryComcode: (query) => api.get(`${config.interfaces.type5}instrument-server/company/queryComcode`, query),
  //获取公司新闻列表 comNewsList
  comNewsList: (query) => api.post(`${config.interfaces.type5}instrument-server/company/comNewsList`, query),
  //获取公司公告列表 comAnnouncement
  comAnnouncement: (query) => api.post(`${config.interfaces.type5}instrument-server/company/comAnnouncement`, query),
  //获取新闻详情 comNewsDetail
  comNewsDetail: (query) => api.get(`${config.interfaces.type5}instrument-server/company/comNewsDetail`, query),
  //获取新闻/公告的相关持仓 comAssociatedPosition
  comAssociatedPosition: (query) => api.get(`${config.interfaces.type5}instrument-server/company/comAssociatedPosition`, query),
  //公告类型 comAnnouncementType
  comAnnouncementType: (query) => api.get(`${config.interfaces.type5}instrument-server/company/comAnnouncementType`, query),
  //获取新闻事件标签 comNewsEventTag
  queryComNewsEventTag: (query) => api.get(`${config.interfaces.type5}instrument-server/company/comNewsEventTag`, query),
};
